<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ include file="/common/taglibs.jsp" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>查询</title>

    <%@ include file="/common/util.jsp" %>
    <script type="text/javascript" src="${cdnctx }/src/statistics/countmanypreview.js"></script>
    <script type="text/javascript">
        function windowprint() {
            $("#print").hide();
            window.print();
            $("#print").show();
        }
    </script>
</head>
<body class="main">
<div>
    <div align="center">
        <button onclick="windowprint()" style="margin-top: 10px" id="print">打印报告</button>
    </div>
    <br/><br/>

    <div class="content">
        <input type="hidden" class="form-control" id="sessionCustomerName" value="${customername }">

        <div style="left: 20px">
            <div align="center" style='height: 40px;font-weight: bold;font-size:22px;'>${customername }多店能源分析</div>
            <div align="center">${countModel.startDate}~${countModel.endDate}</div>
        </div>
        <form class="form-inline" style="min-width:700px;margin-left: 20px;margin-top: 20px;" id="countForm"
              action="${cdnctx}/count/excuteCountMany.shtml" method="post">
            <input type="hidden" value="${countModel.startDate}" id="startDate" name="startDate">
            <input type="hidden" value="${countModel.endDate}" id="endDate" name="endDate">
            <input type="hidden" id="province" name="province" value="${countModel.province}"/>
            <input type="hidden" id="city" name="city" value="${countModel.city}"/>
            <input type="hidden" id="district" name="district" value="${countModel.district}"/>
            <input type="hidden" id="personel" name="personel" value="${countModel.personel}"/>
            <input type="hidden" id="acreage" name="acreage" value="${countModel.acreage}"/>
        </form>
        <div style="margin-top: 10px" align="center">
            <table>
                <tr style="text-align: center;">
                    <c:if test="${not empty(countModel.province)}">
                        <td style="width: 100px">省份:${countModel.province}</td>
                    </c:if>
                    <c:if test="${not empty(countModel.city)}">
                        <td style="width: 100px">城市:${countModel.city}</td>
                    </c:if>
                    <c:if test="${not empty(countModel.district)}">
                        <td style="width: 100px">地区:${countModel.district}</td>
                    </c:if>
                    <c:if test="${not empty(countModel.personel)}">
                        <td style="width: 100px">人数:${countModel.personel}</td>
                    </c:if>
                    <c:if test="${not empty(countModel.acreage)}">
                        <td style="width: 100px">面积:${countModel.acreage}</td>
                    </c:if>
                </tr>
            </table>
        </div>
        <div class="detailDiv" id="maindata">
            <br/>

            <div class="even" style="color:red" id="nodatas">
                <div class="no-data" style="height: 280px;"></div>
            </div>
            <table class="list_table" id="counttable">
                <thead>
                <tr>
                    <td colspan="6" style="text-align: left">
                        &nbsp;&nbsp; 基础数据
                    </td>
                </tr>
                </thead>
                <tr id="countcompanycode">
                    <td>番号</td>
                </tr>
                <tr id="countcustomername">
                    <td>名称</td>
                </tr>
                <tr id="countemployeenum">
                    <td>人数</td>
                </tr>
                <tr id="countsquare">
                    <td>面积(m²)</td>
                </tr>
                <tr id="countstreet">
                    <td>地址</td>
                </tr>
                <thead>
                <tr>
                    <td colspan="6" style="text-align: left">
                        &nbsp;&nbsp; 能源数据
                    </td>
                </tr>
                </thead>
                <tr id="countrealpower">
                    <td>耗电量(度)</td>
                </tr>
                <tr id="countlightpower">
                    <td>灯具耗电量(度)</td>
                </tr>
                <tr id="countairpower">
                    <td>空调耗电量(度)</td>
                </tr>
                <tr id="countunitsquare">
                    <td>单位面积能耗(度/m²)</td>
                </tr>
                <tr id="countunitperson">
                    <td>单位人均能耗(度/人)</td>
                </tr>
            </table>
            <br style="clear:both;">
        </div>
    </div>

</div>
</div>
</body>
</html>